﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register Src="/_ControlTemplates/InformationManagerControls/Pager.ascx" TagName="Pager" TagPrefix="SharepointTools" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectFileLibrary.aspx.cs" EnableEventValidation="false"  Inherits="MS.InformationManagement.Controls.Layouts.MS.InformationManagement.Controls.SelectFileLibrary" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
<div class="form-container">
      <h3>Seleccione archivo</h3>
      <asp:GridView ID="gvFiles" runat="server" AutoGenerateColumns="False" gridLines="None" Cellspacing="1" Cellpadding="4" border="0" CssClass="tablaDatos" HeaderStyle-CssClass="tituloGrid" RowStyle-CssClass="claFilaGrid" OnRowDataBound="gvFiles_RowDataBound" >
          <Columns>
              <asp:TemplateField Visible ="false">
                <ItemTemplate>
                  <asp:Label ID="lblId" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "ItemId")%>'></asp:Label>
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField>
                <ItemTemplate>
                  <asp:CheckBox ID="chkArchivo" runat="server" oncheckedchanged="chkArchivo_CheckedChanged" AutoPostBack="true" />
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Nombre">
                <ItemTemplate>
                  <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FileName")%>'></asp:Label>
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Fecha creación">
               <ItemTemplate>
                  <div align="center">
                    <asp:Label ID="lblDate" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CreationDate", "{0:dd/MM/yyyy hh:mm:ss tt}")%>'></asp:Label>
                  </div> 
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="Tamaño">
                <ItemTemplate>
                 <div align="center">
                  <asp:Label ID="lblSize" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "FileSize")+"KB"%>'></asp:Label>
                 </div>
                </ItemTemplate>
              </asp:TemplateField>
              <asp:TemplateField>
                <ItemTemplate>
                   <div align="center">
                    <asp:HyperLink ID="lnkShowFile" runat="server" >
                        <asp:Image ID="imgShow" runat="server" ImageUrl="/_layouts/images/open.gif"  />
                    </asp:HyperLink>
                   </div>
                </ItemTemplate>
              </asp:TemplateField>
          </Columns>
        <HeaderStyle CssClass="tituloGrid"></HeaderStyle>
        <RowStyle CssClass="claFilaGrid"></RowStyle>
      </asp:GridView>
      <div class="Insertar-Radicado-User-Control-Row form-row">
        <div class="cell12 actionBar aRight">
           <asp:Button ID="btnAdd" runat="server" Text="Guardar" onclick="btnAdd_Click" ValidationGroup="ValBtnAddRadicado" CssClass="button" />
           <asp:Button ID="btnClose" runat="server" onclick="btnClose_Click" CausesValidation="false" Text="Cancelar" CssClass="button" />
        </div>
      </div>
      <SharepointTools:Pager runat="server" ID="pgrTemplates" />
</div>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
Sistema de gesti&oacute;n documental
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
Sistema de gesti&oacute;n documental
</asp:Content>
